// Copyright (c) 2007 Robin Boerdijk. All rights reserved.
//
// This software is licensed under the terms of the Microsoft Reciprocal License as described 
// in the file LICENSE.txt, which you should have received as part of this distribution. The 
// license terms are also available at http://www.opensource.org/licenses/ms-rl.html.

#ifndef wtk_ApplicationWindow_h_included
#define wtk_ApplicationWindow_h_included

#include "wtk/Window.h"

#include <string>

namespace wtk
{
	class Menu;

	class ApplicationWindow : public Window
	{
	public:

		std::wstring title;

		ApplicationWindow(const std::wstring &title);

		virtual Menu &GetMenuBar() = 0;

		int Run();

		void Exit(int exitCode);

	protected:

		virtual LRESULT ProcessMessage(HWND windowHandle, UINT message, WPARAM wParam, LPARAM lParam);
	};
}

#endif